package fr.cnam.ratpProject.client.activities.home;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class HomePlace extends Place {

	private String name;

    public HomePlace(String token) {
        this.name = token;
    }

    public String getName() {
        return name;
    }
	
	@Prefix("homePlace")
	public static class HomePlaceTokenizer implements PlaceTokenizer<HomePlace> {

		@Override
		public HomePlace getPlace(String token) {
			return new HomePlace(token);
		}

		@Override
		public String getToken(HomePlace place) {
			return place.getName();
		}

	}

}
